/**
 * 删除s1字符串中任何出现在s2字符串中的字符
 */

#include <stdio.h>
#include <string.h>

void squeeze(char s1[], char s2[]);

int main() {
    char s1[] = "Hello, world!";
    char s2[] = "Hi, I am yours!";
    printf("%s\n%s\n", s1, s2);
    squeeze(s1, s2);
    printf("%s\n", s1);

    return 0;
}

void squeeze(char s1[], char s2[]) {
    int i, j, k, len1, len2;
    len1 = strlen(s1);
    len2 = strlen(s2);
    
    for (i = 0; i < len1; i++) {
        for (j = 0; j < len2; j++) {
            if (s1[i] == s2[j]) {
                for (k = i; k < len1; k++) {
                    s1[k] = s1[k+1];
                }
            }
        }
    }
}
